import requests


def get_header():
    global token_en
    url_login = "http://127.0.0.1:8080/api/sys/login"
    json_data = {"mobile": "13800000002", "password": "123456"}
    res = requests.post(url=url_login, json=json_data)
    token_en = "Bearer " + res.json()["data"]
    header = {"Content-Type": "application/json", "Authorization": token_en}
    return header
